OUT := main
SRCS := $(wildcard *.c)
#OBJS := add.o main.o sub.o mul.o
OBJS := $(patsubst %.c, %.o, $(SRCS))

COM_OP := -Wall -g
CC := gcc

$(OUT): $(OBJS)
	$(CC) $^ -o $@

%.o : %.c compute.h
	$(CC) -c $< -o $@ $(COM_OP)

.PHONY: clean rebuild

clean:
	rm -f $(OUT) $(OBJS)

rebuild: clean $(OUT)
